home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / pxm_ray / pxm_ray.lha / pxm-ray / msg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-09  |  731 b   |  38 lines

  1.  
  2.  
  3. /*
  4.  *     Message definitions
  5.  */
  6.  
  7. /* These are the meanings as the pixel nodes interpret them */
  8.  
  9. #define    MSG_NOO        11    /* Please send noo */
  10. #define    MSG_READY    12    /* I am ready for data */
  11. #define    MSG_DONE    13    /* ray tracing done */
  12. #define    MSG_PRINT    14    /* print statms */
  13. #define    MSG_RES        15    /* resolution */
  14.  
  15. /* These are the swap byte macros */
  16.  
  17. #define    SHORT_SWAP(x)    \
  18.         {char *a; register char temp; a = (char *)&x; \
  19.             temp = a[0]; \
  20.             a[0] = a[1]; \
  21.             a[1] = temp; \
  22.         }
  23.  
  24. #define    LONG_SWAP(x)    \
  25.         {short *aa; aa = &x; \
  26.             SHORT_SWAP(aa[0]); \
  27.             SHORT_SWAP(aa[1]); \
  28.         }
  29.  
  30. #ifdef    HOST
  31. /* These are the several buffers */
  32.  
  33. Ushort    pixel_nos[64];
  34. Ushort    pixel_nosq[64];
  35. Ushort    pixel_status[64];
  36. Ushort    pixel_bgflag[64];
  37. #endif
  38.